<?phpuse Illuminate\Database\Eloquent\Model;use Illuminate\Database\Capsule\Manager as DB;class memberquanyilogModel extends Model{    protected $table = 'member_quanyi_log';    protected $primaryKey = 'id';    public $timestamps = false;    protected function serializeDate($date)    {        return $date->format('Y-m-d H:i:s');    }    public function scopeAdd($query)    {        return $query->where('quanyi', '>', 0);    }    public function scopeReduce($query)    {        return $query->where('quanyi', '<', 0);    }}